//
//  FCIntegralStatusTopView.h
//  FCIntegral
//
//  Created by sobey on 2020/1/3.
//  Copyright © 2020 ZhouYou. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FCIntegralStatisticsModel.h"
#import <XYChart/XYChart.h>
#import <XYChart/XYChartItem.h>
#import "FCIntegralStatusModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface FCIntegralStatusTopView : UIView


@property (weak, nonatomic) IBOutlet UILabel *typeLbl;//类型
@property (unsafe_unretained, nonatomic) IBOutlet NSLayoutConstraint *typeLblTop;

@property (weak, nonatomic) IBOutlet UILabel *scoreLbl;//分数
//昨日收益
@property (unsafe_unretained, nonatomic) IBOutlet UIView *yestodayView;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *yestodayLbl;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *monthUpDesLbl;
/**
  类型为我的积分时为5
  其他类型为88
 */
@property (unsafe_unretained, nonatomic) IBOutlet NSLayoutConstraint *monthUpRighth;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *monthUpLbl;//本月新增

@property (weak, nonatomic) IBOutlet UIButton *scoreInBtn;//积分转入
@property (weak, nonatomic) IBOutlet UIButton *scoreOutBtn;//积分提现
@property (weak, nonatomic) IBOutlet UIButton *scoreDetailBtn;//积分明细
@property (unsafe_unretained, nonatomic) IBOutlet UIView *buttomView;
@property (unsafe_unretained, nonatomic) IBOutlet UIView *pointView;

@property (weak, nonatomic) IBOutlet UIView *grayView;
@property (weak, nonatomic) IBOutlet UIButton *timeLbl;//日期
//左边
@property (unsafe_unretained, nonatomic) IBOutlet UIView *leftView;
//没有使用
@property (unsafe_unretained, nonatomic) IBOutlet NSLayoutConstraint *leftViewRightConstant;
@property (weak, nonatomic) IBOutlet UIView *leftLine;
@property (weak, nonatomic) IBOutlet UIButton *leftBtn;
//中间
@property (unsafe_unretained, nonatomic) IBOutlet UIView *centerView;
@property (unsafe_unretained, nonatomic) IBOutlet UIView *centerLine;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *centerLbl;
//右边
@property (unsafe_unretained, nonatomic) IBOutlet UIView *rightView;
@property (weak, nonatomic) IBOutlet UIView *rightLine;
@property (weak, nonatomic) IBOutlet UIButton *rightBtn;

@property (unsafe_unretained, nonatomic) IBOutlet UIView *chartView;

@property (nonatomic,strong) XYChart * lineChart;

/**
 index = 0 积分转入
 index = 1 积分提现
 index =  2 积分转出
 index = 3 积分明细
 index = 4 选择日期

 */
@property (nonatomic,copy) void (^topBlock)(NSInteger index);

/**
 type = 0 我的积分
 按钮包括：积分兑换，积分明细
 type = 1 消费积分
  按钮包括：积分转入，积分转出，积分明细
*/
@property (nonatomic , assign) NSInteger type;

@property (nonatomic , strong) FCIntegralStatusModel *model;
@property (nonatomic , strong)  NSArray *xLabelArr;//X轴的日期组数
@property (nonatomic , strong)  NSArray *yLabelArr;//Y轴的区间范围
@property (nonatomic , assign) CGFloat minY;//Y轴的最小值
@property (nonatomic , assign) CGFloat maxY;//Y轴最大值
@property (nonatomic , strong)  NSArray *list;


@end

NS_ASSUME_NONNULL_END
